package gridy.node;

import gridy.client.Client;

import org.apache.tuscany.sca.node.launcher.NodeLauncher;

public class LaunchWorker {
    public static void main(String[] args) throws Exception {

        /*
        Thread thread = new Thread() {
            @Override
            public void run() {
                try {
                    NodeLauncher.main(new String[] {"http://localhost:9990/node-config/NodeWorker"});
                }
                catch (Exception e) {
                    e.prifntStackTrace();
                }
            }
        };
        thread.start();
        
        Client myClient = 
            client.getService(Client.class, "ClientComponent");
        
        thread.join();
        */
        NodeLauncher.main(new String[] {"http://localhost:9990/node-config/NodeWorker"});

    }
}
